home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
graphics
/
pbm
/
pbm_man.zoo
/
man1
/
pgmtoppm.1
< prev
next >
Wrap
Text File
|
1994-08-27
|
2KB
|
67 lines
pgmtoppm(1) USER COMMANDS pgmtoppm(1)
NAME
pgmtoppm - colorize a portable graymap into a portable pix-
map
SYNOPSIS
pgmtoppm _✓c_✓o_✓l_✓o_✓r_✓s_✓p_✓e_✓c [_✓p_✓g_✓m_✓f_✓i_✓l_✓e]
pgmtoppm _✓c_✓o_✓l_✓o_✓r_✓s_✓p_✓e_✓c_✓1-_✓c_✓o_✓l_✓o_✓r_✓s_✓p_✓e_✓c_✓2 [_✓p_✓g_✓m_✓f_✓i_✓l_✓e]
pgmtoppm -map _✓m_✓a_✓p_✓f_✓i_✓l_✓e [_✓p_✓g_✓m_✓f_✓i_✓l_✓e]
DESCRIPTION
Reads a portable graymap as input. Colorizes it by multi-
plying the the gray values by specified color or colors, and
produces a portable pixmap as output.
If only one color is specified, black in the pgm file stays
black and white in the pgm file turns into the specified
color in the ppm file. If two colors (separated by a dash)
are specified, then black gets mapped to the first color and
white gets mapped to the second.
The colors can be specified in three ways. One, as a name,
assuming that a pointer to an X11-style color names file was
compiled in. Two, as an X11-style hexidecimal number: #rgb,
#rrggbb, #rrrgggbbb, or #rrrrggggbbbb. Three, as a triplet
of decimal floating point numbers separated by commas:
r.r,g.g,b.b.
Also, the -map flag lets you specify an entire colormap to
be used. The mapfile is just a _✓p_✓p_✓m file; it can be any
shape, all that matters is the colors in it and their order.
In this case, black gets mapped into the first color in the
map file, and white gets mapped to the last.
SEE ALSO
rgb3toppm(1), ppmtopgm(1), ppmtorgb3(1), ppm(5), pgm(5)
AUTHOR
Copyright (C) 1991 by Jef Poskanzer.
Sun Release 4.0 Last change: 11 January 1991 1